// This file is part of OpenTSDB.
// Copyright (C) 2017 TeleDB Development Group.
//
// This program is free software: you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 2.1 of the License, or (at your
// option) any later version.  This program is distributed in the hope that it
// will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
// General Public License for more details.  You should have received a copy
// of the GNU Lesser General Public License along with this program.  If not,
// see <http://www.gnu.org/licenses/>.
package net.opentsdb.utils.status;

/**
 * description: 清除数据相关设置
 * author: zhuzhipeng
 * create: 2019-05-14 10:45
 */
public final class ClearDataStatus {
    private ClearDataStatus(){}

    public static final long CLEAR_TIMEOUT = 3600L;

    public static final String JOB_ID = "jobId";
    public static final String JOB_STATUS = "jobStatus";
    public static final String CLEAR_COUNT = "dps";
    public static final String TSUIDS = "tsuids";

    public enum JobStatus{

        JOB_STATUS_RUNNING(1),
        JOB_STATUS_FINISH(2),
        JOB_STATUS_CANCEL(3),
        JOB_STATUS_TIMEOUT(4);

        private int status;
        JobStatus(int status){
            this.status = status;
        }

        public String get(){return String.valueOf(status);}
    }
}

